package com.xxwy.ddu.cms.authonrize.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xxwy
 * @since 2018-09-10
 */
@AllArgsConstructor
@NoArgsConstructor
@TableName("bs_menu_button")
public class MenuButton extends Model<MenuButton> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "b_id", type = IdType.AUTO)
    private Integer bId;

    private String bTitle;

    private String bType;

    /**
     * 所属菜单的按钮
     */
    private Integer mdId;

    public Integer getbId() {
        return bId;
    }

    public void setbId(Integer bId) {
        this.bId = bId;
    }
    public String getbTitle() {
        return bTitle;
    }

    public void setbTitle(String bTitle) {
        this.bTitle = bTitle;
    }
    public String getbType() {
        return bType;
    }

    public void setbType(String bType) {
        this.bType = bType;
    }
    public Integer getMdId() {
        return mdId;
    }

    public void setMdId(Integer mdId) {
        this.mdId = mdId;
    }

    @Override
    protected Serializable pkVal() {
        return this.bId;
    }

    @Override
    public String toString() {
        return "MemuButton{" +
        "bId=" + bId +
        ", bTitle=" + bTitle +
        ", bType=" + bType +
        ", mdId=" + mdId +
        "}";
    }
}
